package com.fs.robot.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fs.api.enumeration.RobotStatus;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("robot")
public class Robot {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String robotName;
    @TableField("status")
    private RobotStatus status;
    private Integer batteryLevel;
    private String location;
    private LocalDateTime lastActiveTime;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
}
